#!/bin/sh

#
# Test out progress reporting on a firmware write
#

. "$(cd "$(dirname "$0")" && pwd)/common.sh"

VERSION=$($FWUP_CREATE --version)

case $VERSION in
    *[0-9].*[0-9].*[0-9]-dev*)
        echo "development fwup version is $VERSION"
        exit 0
        ;;
    *[0-9].*[0-9].*[0-9]*)
        echo "fwup version is $VERSION"
        exit 0
        ;;
    *)
        echo "unexpected fwup version: $VERSION"
        exit 1
esac

